package KnightsTour;

public class Square {

    private boolean visited;
    SquareColour colour;
    private int orderVisited;
    private int row, column;

    public Square (int row, int column, SquareColour colour) {
        this.row = row;
        this.column = column;
        this.colour = colour;
    }

    public boolean wasVisited () {
        return visited;
    }

    public void setVisited (int orderVisited) {
        this.orderVisited = orderVisited;
        visited = true;
    }

    public int getOrderVisited () {
        return orderVisited;
    }

    public int getRow() {
        return row;
    }

    public int getColumn() {
        return column;
    }

    public SquareColour getColour() {
        return colour;
    }
}
